#include <stdio.h>
void chengfabiao(int num)
{
    int i = 0;
    int j = 0;
    for(i = 1;i <= num;i++)
    {
        for(j = 1;j <= i;j++)
        {
            printf("%d*%d=%-3d ",j,i,(i*j));
        }
        printf("\n");
    }
}

int main()
{
    int num = 0;
    scanf("%d", &num);
    chengfabiao(num);
    return 0;
}